/** 
 * 文 件 名:Device.java
 * Copyright (C) 2007-2012:杭州希禾信息技术有限公司 版权所有 
 * 创 建 人:刘绍辉
 * 日    期:2012-3-12 下午12:09:00
 * 修 改 人: 
 * 日   期:
 * 修改描述:
 * 描   述:TODO
 */
package net.seehealth.healthpad.model.devicemanage;

import net.seehealth.healthpad.application.base.BaseModel;
/**
 * @className Device
 * @author 刘绍辉
 * @description 监测设备
 * @date 2012-3-14 下午14:09:00
 */
public class Device extends BaseModel {
	/**
	 * 主键ID
	 */
	private Integer did;
	/**
	 * 设备名称
	 */
	private String dname;
	/**
	 * 设备地址
	 */
	private String daddress;
	/**
	 * 设备类型
	 */
	private String dtype;
	/**
	 * 是否是默认设备
	 */
	private String isdefault;
	
	/**
	 * empty constructor
	 */
	public Device (){}
	/**
	 * full constructor
	 * @param did
	 * @param dname
	 * @param daddress
	 * @param dtype
	 * @param isdefault
	 */
	public Device(Integer did, String dname, String daddress, String dtype,
			String isdefault) {
		super();
		this.did = did;
		this.dname = dname;
		this.daddress = daddress;
		this.dtype = dtype;
		this.isdefault = isdefault;
	}
	@Override
	public String toString() {
		return "Device [did=" + did + ", dname=" + dname + ", daddress="
				+ daddress + ", dtype=" + dtype + ", isdefault=" + isdefault
				+ "]";
	}
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	public String getDname() {
		return dname;
	}
	public void setDname(String dname) {
		this.dname = dname;
	}
	public String getDaddress() {
		return daddress;
	}
	public void setDaddress(String daddress) {
		this.daddress = daddress;
	}
	public String getDtype() {
		return dtype;
	}
	public void setDtype(String dtype) {
		this.dtype = dtype;
	}
	public String getIsdefault() {
		return isdefault;
	}
	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}
}
